<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>黑马</title>
    <style>
        body {
            perspective: 500px;
        }
        div[class^="box"] {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transition: all 2s;
        }
        .box1 {
            
            background-color: pink;
            } 
        .box2 {
            
            background-color: skyblue;
            
        }
        .zhuan {
            width: 300px;
            height: 300px;
            position: relative;
            transform-style: preserve-3d;
            margin: 100px 1000px;
        }
        .zhuan:hover .box2{

            transform: rotateX(60deg);
        }
    </style>
</head>
<body>
    <div class="zhuan">
        <div class="box1">黑马</div>
        <div class="box2">欢迎你</div>
    </div>
</body>
</html>